package com.briup.bms.dao;

import java.util.List;
import java.util.Set;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.briup.bms.bean.Region;

@Mapper
public interface IRegionDao {
	void insert(Region region);
	Region findByName(String name);
	void updateById(Region region);
	Region findById(Long id);
	int deleteById(Long id);
	int deleteByBatch(Set<Long> ids);
	List<Region> findByCondition(@Param("start")int start,
			@Param("size")int size, @Param("name")String name);
	int statisticCount(String name);
	
	List<Region> findByNameLike(String name);
	List<Region> findAll();
}
